<form class="layui-form model-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<input name="pid" id="pid" type="hidden" value="{$info.pid|default=0}">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">栏目名称：</label>
			<div class="layui-input-inline">
				<input name="name" value="{$info.name|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入栏目名称" class="layui-input pinyin" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">所属站点：</label>
			<div class="layui-input-inline">
				{common:select param="item_id|1|所属站点|name|id" data="$itemList" value="isset($info['item_id']) ? $info['item_id'] : 0"}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">栏目拼音：</label>
			<div class="layui-input-inline">
				<input name="pinyin" value="{$info.pinyin|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入栏目拼音" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">栏目简拼：</label>
			<div class="layui-input-inline">
				<input name="code" value="{$info.code|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入栏目简拼" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">有无封面：</label>
			<div class="layui-input-inline">
				{common:switch name="is_cover" title="有封面|无封面" value="isset($info['is_cover']) ? $info['is_cover'] : 1" hidden="cover"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">序号：</label>
			<div class="layui-input-inline">
				<input name="sort" id="sort" value="{$info.sort|default=125}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item {if isset($info.is_cover) && $info.is_cover neq 1}layui-hide{/if} cover">
		<label class="layui-form-label">栏目封面：</label>
		{upload:image name="cover|封面|90x90|建议上传尺寸450x450" value="isset($info['cover_url']) ? $info['cover_url'] : ''"}
	</div>
	<div class="layui-form-item layui-form-text" style="width:625px;">
		<label class="layui-form-label">栏目说明：</label>
		<div class="layui-input-block">
			<textarea name="note" id="note" placeholder="请输入栏目说明" class="layui-textarea">{$info["note"]|default=''}</textarea>
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
